package com.ruoyi.ai.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 作品管理对象 ai_work
 *
 * @author tang
 * @date 2024-12-10
 */
public class AiWork extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 作品ID */
    private Long workId;

    /** 用户ID */
    @Excel(name = "用户ID")
    @NotNull(message = "用户不能为空")
    private Long userId;

    /** 分类的ID */
    @Excel(name = "分类的ID")
    private Long categoryId;

    /** 作品标题 */
    @Excel(name = "作品标题")
    @NotBlank(message = "作品标题不能为空")
    private String title;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String image;

    /** 使用人数 */
    @Excel(name = "使用人数")
    private Long userNumber;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long likeNumber;

    /** 收藏数 */
    @Excel(name = "收藏数")
    private Long collectNumber;

    /** 对话次数 */
    @Excel(name = "对话次数")
    private Long chatNumber;

    /** 作品的内容 */
    @Excel(name = "作品的内容")
    private String content;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 作品状态（0发布 1编辑 2隐藏） */
    @Excel(name = "作品状态", readConverterExp = "0=发布,1=编辑,2=隐藏")
    private String status;

    public void setWorkId(Long workId)
    {
        this.workId = workId;
    }

    public Long getWorkId()
    {
        return workId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setCategoryId(Long categoryId)
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }
    public void setUserNumber(Long userNumber)
    {
        this.userNumber = userNumber;
    }

    public Long getUserNumber()
    {
        return userNumber;
    }
    public void setLikeNumber(Long likeNumber)
    {
        this.likeNumber = likeNumber;
    }

    public Long getLikeNumber()
    {
        return likeNumber;
    }
    public void setCollectNumber(Long collectNumber)
    {
        this.collectNumber = collectNumber;
    }

    public Long getCollectNumber()
    {
        return collectNumber;
    }
    public void setChatNumber(Long chatNumber)
    {
        this.chatNumber = chatNumber;
    }

    public Long getChatNumber()
    {
        return chatNumber;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("workId", getWorkId())
                .append("userId", getUserId())
                .append("categoryId", getCategoryId())
                .append("title", getTitle())
                .append("image", getImage())
                .append("userNumber", getUserNumber())
                .append("likeNumber", getLikeNumber())
                .append("collectNumber", getCollectNumber())
                .append("chatNumber", getChatNumber())
                .append("content", getContent())
                .append("delFlag", getDelFlag())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
